package com.daon.dto;

import com.daon.pojo.SysRole;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/3/16 9:48 PM
 * @Modified By
 */
@Getter
@Setter
@ToString
public class SysRoleDto extends SysRole {
    // 是否要默认选中
    private boolean checked = false;

    public static SysRoleDto adapt(SysRole sysRole){
        SysRoleDto dto = new SysRoleDto();
        BeanUtils.copyProperties(sysRole, dto);
        return dto;
    }
}
